<!-- 头部 -->
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <base href="/guguanjia/">
    <meta charset="utf-8"/>
    <meta name="renderer" content="webkit">

    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <title>固管家服务平台</title>

    <meta name="description" content="index"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/>

    <!-- bootstrap & fontawesome -->
    <link rel="stylesheet" href="static/bootstrap/bootstrap.min.css"/>
    <link rel="stylesheet" href="static/css/font-awesome.min.css"/>

    <link rel="stylesheet" href="static/chosen/chosen.min.css"/>

    <!-- ace styles -->
    <link rel="stylesheet" href="static/ace/css/ace.min.css" id="main-ace-style"/>


    <link rel="stylesheet" href="static/ace/css/ace-skins.min.css"/>
    <link rel="stylesheet" href="static/ace/css/ace-rtl.min.css"/>


    <link rel="stylesheet" href="static/ztree/metro.css"/>
    <link rel="stylesheet" href="static/validate/css/validform.css"/>
    <link rel="stylesheet" href="static/css/custom.css"/>

    <!--[if !IE]> -->
    <script src="static/jquery/jquery.js"></script>
    <!-- <![endif]-->


    <!-- ace settings handler -->
    <script src="static/ace/js/ace-extra.min.js"></script>
</head>

<body class="no-skin" id="body-content">

<!-- 主体 -->
<div class="main-container" id="main-container">


    <div class="main-content">
        <div class="breadcrumbs" id="breadcrumbs">


            <ul class="tab" id="breadcrumb">
                <!-- <li class="active" >
               菜单配置<i class="fa fa-times close"></i>
               </li>  -->
            </ul><!-- /.breadcrumb -->
            <div id="tab-menu">
                <ul class="dropdown-menu dropdown-caret" style="min-width: 0px;">
                    <li><a href="javascript:void(0);" data-right-menu="all_close">全部关闭</a></li>
                    <li><a href="javascript:void(0);" data-right-menu="other_close">关闭其他</a></li>
                </ul>
            </div>
        </div>

        <div class="page-content">

            <div class="page-header">
                <h1>处理需求</h1>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <div id="fill-main-content" style="height:100%">
                        <form name="FormPost" id="demand-save" class="FormGrid" method="post" action="demand/save">
                            <input type="hidden" value="4" name="id">
                            <table class="EditTable" width="100%">
                                <tbody>
                                <tr class="FormData">
                                    <td class="CaptionTD">需求ID</td>
                                    <td class="DataTD width-100">{{app.id}}</td>
                                </tr>
                                <tr class="FormData">
                                    <td class="CaptionTD">提出时间</td>
                                    <td class="DataTD">{{app.createDate}}</td>
                                </tr>
                                <tr class="FormData">
                                    <td class="CaptionTD">姓名</td>
                                    <td class="DataTD">{{app.name}}</td>
                                </tr>
                                <tr class="FormData">
                                    <td class="CaptionTD">联系电话</td>
                                    <td class="DataTD">{{app.phone}}</td>
                                </tr>
                                <tr class="FormData">
                                    <td class="CaptionTD">单位名称</td>
                                    <td class="DataTD">{{app.company}}</td>
                                </tr>
                                <tr class="FormData">
                                    <td class="CaptionTD">需求详情</td>
                                    <td class="DataTD">{{app.description}}</td>
                                </tr>
                                <tr class="FormData">
                                    <td class="CaptionTD">处理状态</td>
                                    <td class="DataTD">
                                        <select name="status" class="width-70" v-model="app.status">
                                            <option value="0">未处理</option>
                                            <option value="1">已处理</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr class="FormData">
                                    <td class="CaptionTD">处理详情</td>
                                    <td class="DataTD">
                                        <textarea rows="5" name="treatment" class="autosize-transition form-control"
                                                  style="resize: none; overflow: hidden; word-wrap: break-word; height: 112px;"
                                                  v-model="app.treatment"></textarea>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </form>
                    </div>

                    <div class="width-100 clearfix" tag-save-btn=""
                         style="bottom: -36px; left: 0px; position: absolute;" @click="updateDemandInfo()">
	<span class="btn btn-primary btn-sm bigger-110 width-50  pull-left" id="demand-save-save">
		<i class="ace-icon fa fa-floppy-o align-top bigger-125"></i> 确 定
	</span>
                        <span class="btn btn-yellow btn-sm bigger-110 width-50 pull-right" id="demand-save-cancel"
                              @click="cancelUpdate">
		<i class="ace-icon fa fa-times align-top  bigger-125"></i> 取 消
	</span>
                    </div>
                    <!--<script type="text/javascript">
                        $(function(){

                            var demandsave = $("#demand-save").Validform({
                                ajaxPost : true,
                                beforeSubmit:function(curform){
                                    var loadi = layer.load(5,2);
                                    $("#demand-save").data('loadi',loadi);
                                },
                                callback:function(data){
                                    layer.close($("#demand-save").data('loadi'));
                                    if(data>0) {
                                        layer.msg('操作成功', 1, 1,function(){
                                            if("false" == "true"){
                                                location.reload();
                                            }else{
                                                $curmenu.trigger('click');
                                            }
                                            layer.closeAll();
                                        });
                                    }else{
                                        layer.msg('操作失败', 3, 1);
                                    }
                                },
                                tiptype : function(msg, o, cssctl) {
                                    if (!o.obj.is("form")) {
                                        if (o.type != 2) {
                                            tip.errorTip(msg,o.obj);
                                        }
                                    }
                                },
                                tipSweep : true
                            });

                            $("#demand-save-save").click(function() {
                                if("false" == "true"){

                                }
                                demandsave.submitForm(false);
                                return false;
                            });

                            $("#demand-save-cancel").click(function(){
                                layer.closeAll();
                                return false;
                            });

                            $("#demand-save input,#demand-save textarea").blur(function(){
                                layer.closeTips();
                                return false;
                            })

                        });
                    </script>
                    <script type="text/javascript">

                        //描述框自动扩张高度
                        $('textarea[class*=autosize]').autosize({append: "\n"});
                    </script></div>-->

                </div>

            </div>
        </div><!-- /.page-content -->

    </div><!-- /.main-content -->

    <a href="javascript:void(0);" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse" style="z-index:1111">
        <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
    </a>
</div><!-- /.main-container -->

<!-- 底部 -->
<!-- basic scripts -->


<script src="static/bootstrap/bootstrap.min.js"></script>

<!-- ace scripts -->
<script src="static/ace/js/ace-elements.min.js"></script>
<script src="static/ace/js/ace.min.js"></script>

<script type="text/javascript">
    try {
        ace.settings.check('navbar', 'fixed')
    } catch (e) {
    }

    try {
        ace.settings.check('main-container', 'fixed')
    } catch (e) {
    }

    try {
        ace.settings.check('sidebar', 'fixed')
    } catch (e) {
    }

    try {
        ace.settings.check('sidebar', 'collapsed')
    } catch (e) {
    }

    try {
        ace.settings.check('breadcrumbs', 'fixed')
    } catch (e) {
    }
    window.onload = function () {
        /* $("#ace-settings-navbar").trigger("click");//固定头部导航栏
        $("#ace-settings-sidebar").trigger("click");//固定左侧菜单
        $("#ace-settings-highlight").trigger("click"); */
    };
</script>

<!-- 引入其他js -->
<script src="static/js/history.js"></script>
<script type="text/javascript" src="static/layer/layer.js"></script>
<script type="text/javascript" src="static/js/spin.min.js"></script>
<script type="text/javascript" src="static/ztree/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="static/js/jquery.autosize.min.js"></script>
<script type="text/javascript" src="static/chosen/chosen.jquery.min.js"></script>
<script type="text/javascript" src="static/validate/Validform_v5.3.2_min.js"></script>
<script type="text/javascript" src="static/js/jquery.form.js"></script>
<script type="text/javascript" src="static/js/bootstrap-contextmenu.js"></script>
<script type="text/javascript" src="static/js/jquery.nicescroll.min.js"></script>
<script type="text/javascript" src="static/js/public.js"></script>
<!--<script type="text/javascript" src="../../static/jquery/jquery.js"></script>-->

<script type="text/javascript" src="static/vue/vue.js"></script>
<script type="text/javascript" src="static/vue/axios.js"></script>
<script type="text/javascript" src="static/js/demand/update.js"></script>
</body>
</html>
